package com.volkanic.thread;

import com.volkanic.game.BlueMoonGame;

/**
 * Created by Lucas on 27/07/2014.
 */
public class MainThread extends Thread {

    protected BlueMoonGame _game;

    protected boolean _isRunning;

    public MainThread(BlueMoonGame game) {
        _game = game;
    }

    @Override
    public synchronized void start() {
        super.start();
        _isRunning = true;
    }

    @Override
    public void interrupt() {
        _isRunning = false;
    }

    public void restart() {
        _isRunning = true;
    }

    public void dispose() {
        _isRunning = true;
    }
}
